package com.example.security.demo.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

//    @RequestMapping("/login")
//    public String login(){
//        System.out.println("登陆方法");
//        return "redirect:main.html";
//    }

    @RequestMapping("/toMain")
    public String toMain(){
        System.out.println("登陆方法");
        return "redirect:main.html";
    }

    @RequestMapping("/toError")
    public String toError(){
        System.out.println("登陆方法");
        return "redirect:error.html";
    }
}
